<?php
/**
 *
 * 功能说明：前台帮助控制器
 *
 **/
namespace Home\Controller;

class HelpController extends ComController
{

	//帮助信息的列表展示
    public function index()
    {
    	$info = M('help')->order('id desc')->select();
    	$this->assign('help',$info);
        $this->display();
    }

	//帮助详情页
    public function detail()
    {
    	$where['id'] = $_GET['id'];
    	$info = M('help')->where($where)->find();
		$title=$info['title'];
		$content=$info['content'];

    	$this->assign('title',$title);
		$this->assign('content',$content);
    	$this->display();
    }

}